package cn.xk.ymcc.feign;

import cn.xk.ymcc.domain.Login;
import cn.xk.ymcc.feign.fallback.UaaFeignClientFallBack;
import cn.xk.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-uaa",fallbackFactory = UaaFeignClientFallBack.class)
public interface UaaFeignClient {
    @PostMapping("/login/register")
    JSONResult register(@RequestBody Login login);
}
